package com.uprr.netcontrol.starmap.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class DeploymentUnitDTO extends BaseEntity implements Serializable {

  private static final long serialVersionUID = -6112512239007703166L;

  protected String name;

  protected String deploymentStrategy;

  protected String functionGroup;

  protected String type;

  protected String environmentType;

  protected DistributionPackageDTO distributionPackage;

  protected List<HostDTO> host;

  protected List<ResourceDTO> resource;

  protected List<BusinessFunctionDTO> businessFunction;

  protected ServerLogsDTO serverLogs;

  public final String getName() {
    return name;
  }

  public final void setName(final String name) {
    this.name = name;
  }

  public final String getDeploymentStrategy() {
    return deploymentStrategy;
  }

  public final void setDeploymentStrategy(final String deploymentStrategy) {
    this.deploymentStrategy = deploymentStrategy;
  }

  public final String getFunctionGroup() {
    return functionGroup;
  }

  public final void setFunctionGroup(final String functionGroup) {
    this.functionGroup = functionGroup;
  }

  public final String getType() {
    return type;
  }

  public final void setType(final String type) {
    this.type = type;
  }

  public final String getEnvironmentType() {
    return environmentType;
  }

  public final void setEnvironmentType(final String environmentType) {
    this.environmentType = environmentType;
  }

  public final DistributionPackageDTO getDistributionPackage() {
    return distributionPackage;
  }

  public final void setDistributionPackage(final DistributionPackageDTO distributionPackage) {
    this.distributionPackage = distributionPackage;
  }

  public final List<HostDTO> getHost() {
    if (host == null) {
      host = new ArrayList<HostDTO>();
    }
    return host;
  }

  public final void setHost(final List<HostDTO> host) {
    this.host = host;
  }

  public final List<ResourceDTO> getResource() {
    if (resource == null) {
      resource = new ArrayList<ResourceDTO>();
    }
    return resource;
  }

  public final void setResource(final List<ResourceDTO> resource) {
    this.resource = resource;
  }

  public final List<BusinessFunctionDTO> getBusinessFunction() {
    if (businessFunction == null) {
      businessFunction = new ArrayList<BusinessFunctionDTO>();
    }
    return businessFunction;
  }

  public final void setBusinessFunction(final List<BusinessFunctionDTO> businessFunction) {
    this.businessFunction = businessFunction;
  }

  public final ServerLogsDTO getServerLogs() {
    return serverLogs;
  }

  public final void setServerLogs(final ServerLogsDTO serverLogs) {
    this.serverLogs = serverLogs;
  }

}
